<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);

class audit_model extends model{
	
	public function __construct()
	{
		$this->db_config = pc_base::load_config('database');
		$this->db_setting = 'default';
		$this->table_name = 'authentication_info';
		$this->admin_db = pc_base::load_model('admin_model');
		$this->admin_userid = param::get_cookie('userid'); // 获取当前登录的管理员ID
		$this->siteid = get_siteid();//获取当前站点
		parent::__construct();
	}
	
	/**
	 * 删除人才时还原认证表的认证人状态
	 */
	public function original_authuser($id) {
		$where = "talent_id in ('$id')";
		$result = $this->delete($where);
		return $result;
	}
}